@font-face {
  font-family: 'kaiti';
  src: url('https://nihaotest.smwho.cn/fonts/kaiti.woff2') format('woff2');
}
body {
	margin: 0;
	background-color: #000;
	color: #fff;
	font-family: Monospace;
	font-size: 13px;
	line-height: 24px;
	overflow:hidden;
	overscroll-behavior: none;
}

a {
	color: #ff0;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

button {
	cursor: pointer;
	text-transform: uppercase;
}

#info {
	position: absolute;
	top: 0px;
	width: 100%;
	padding: 10px;
	box-sizing: border-box;
	text-align: center;
	-moz-user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
	user-select: none;
	z-index: 1; /* TODO Solve this in HTML */
}

a, button, input, select {
	pointer-events: auto;
}

.lil-gui {
	z-index: 2 !important; /* TODO Solve this in HTML */
}

@media all and ( max-width: 640px ) {
	.lil-gui.root { 
		right: auto;
		top: auto;
		max-height: 50%;
		max-width: 80%;
		bottom: 0;
		left: 0;
	}
}

#overlay {
	position: absolute;
	font-size: 16px;
	z-index: 2;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	background: rgba(0,0,0,0.7);
}

#overlay button {
	background: transparent;
	border: 0;
	border: 1px solid rgb(255, 255, 255);
	border-radius: 4px;
	color: #ffffff;
	padding: 12px 18px;
	text-transform: uppercase;
	cursor: pointer;
}

#notSupported {
	width: 50%;
	margin: auto;
	background-color: #f00;
	margin-top: 20px;
	padding: 10px;
}
a {
	color: blue;
}
.control-inactive button {
	color: #888;
}

.goback {
	position: absolute;
	top: 0px;
	left: 0px;
	width: 5vh;
	height: 5vh;
	font-size: 4vh;
	font-weight: bold;
	color: rgba(255,255,255,1);
	line-height: 5vh;
	cursor: pointer;
	text-align: center;
}
.topBar{
	position: fixed;
	top:0px;
	left:0px;
	width:100%;
	height:5vh;
	background-color: rgba(150,150,150,0.7);
}
.part {
	position: absolute;
	top:0px;
	width: 20%;
	text-align: left;
	height: 5vh;
	font-size: 3.5vh;
	line-height: 5vh;
	color: rgba(255,255,255,1);
}
.h1{
	left:10%;
}
.h2{
	left:30%;
}
.h3{
	left:50%;
}
.h4{
	left:70%;
}

.element {
	width: 120px;
	height: 160px;
	box-shadow: 0px 0px 12px rgba(0,255,255,0.5);
	border: 1px solid rgba(127,255,255,0.25);
	font-family: Helvetica, sans-serif;
	text-align: center;
	line-height: normal;
	cursor: pointer;
}
.element:hover {
	box-shadow: 0px 0px 12px rgba(0,255,255,0.75);
	border: 1px solid rgba(127,255,255,0.75);
}

.element .number {
	position: absolute;
	top: 20px;
	right: 20px;
	font-size: 12px;
	color: rgba(127,255,255,0.75);
}

.element .symbol {
	position: absolute;
	top: 35px;
	left: 0px;
	right: 0px;
	font-size: 60px;
	font-weight: bold;
	color: rgba(255,255,255,0.75);
	text-shadow: 0 0 10px rgba(0,255,255,0.95);
}

.element .details {
	position: absolute;
	bottom: 15px;
	left: 0px;
	right: 0px;
	font-size: 12px;
	color: rgba(127,255,255,0.75);
}
.card {
	width: 480px;
	height: 640px;
	box-shadow: 0px 0px 20px rgba(0,255,255,0.5);
	border: 3px solid rgba(127,255,255,0.25);
}

.card:hover {
	box-shadow: 0px 0px 20px rgba(0,255,255,0.75);
	border: 3px solid rgba(127,255,255,0.75);
}
.card .zi {
	position: absolute;
	width: 110px;
	height: 110px;
	box-shadow: 0px 0px 12px rgba(0,255,255,0.5);
	border: 1px solid rgba(127,255,255,0.25);
	font-family: kaiti, sans-serif;
	text-align: center;
	line-height: 110px;
	font-size: 90px;
	color: rgba(255,255,255,0.75);
	text-shadow: 0 0 10px rgba(0,255,255,0.95);
}
.card .number {
	position: absolute;
	bottom: 40px;
	left: 40px;
	width: 100px;
	height: 25px;
	text-align: left;
	font-size: 20px;
	color: rgba(127,255,255,0.75);
}
.card .rare {
	position: absolute;
	bottom: 40px;
	left: 0px;
	width: 480px;
	height: 25px;
	text-align: center;
	font-size: 20px;
	color: rgba(127,255,255,0.75);
}
.card .price {
	position: absolute;
	bottom: 40px;
	right: 40px;
	width: 100px;
	height: 25px;
	text-align: right;
	font-size: 20px;
	color: rgba(127,255,255,0.75);
}
.card .detail {
	position: absolute;
	top: 40px;
	left: 40px;
	width: 400px;
	height: 400px;
	font-size: 30px;
	line-height: 40px;
	color: rgba(127,255,255,0.75);
}
.card .balance {
	position: absolute;
	top: 450px;
	left: 40px;
	width: 400px;
	height: 50px;
	font-size: 40px;
	color: rgba(127,255,255,0.75);
}
.card .buy {
	position: absolute;
	bottom: 40px;
	left: 150px;
	width: 140px;
	height: 60px;
	line-height: 60px;
	text-align: center;
	font-size: 40px;
	color: rgba(127,255,255,0.75);
	box-shadow: 0px 0px 12px rgba(0,255,255,0.5);
	border: 1px solid rgba(127,255,255,0.25);
	border-radius:30px;
	cursor: pointer;
}
.card .buy:hover {
	box-shadow: 0px 0px 12px rgba(0,255,255,0.75);
	border: 1px solid rgba(127,255,255,0.75);
}
#menu {
	position: absolute;
	bottom: 20px;
	width: 100%;
	text-align: center;
}
.fnButton{
	width: 140px;
	height: 60px;
	line-height: 60px;
	text-align: center;
	font-size: 40px;
	color: rgba(127,255,255,0.75);
	box-shadow: 0px 0px 12px rgba(0,255,255,0.5);
	border: 1px solid rgba(127,255,255,0.25);
	border-radius:30px;
	cursor: pointer;
}
.fnButton:hover {
	box-shadow: 0px 0px 12px rgba(0,255,255,0.75);
	border: 1px solid rgba(127,255,255,0.75);
}
.ziCard {
	width: 100px;
	height: 100px;
	box-shadow: 0px 0px 12px rgba(0,255,255,0.5);
	border: 1px solid rgba(127,255,255,0.25);
	cursor: pointer;
}
.ziCardLine {
	width: 100px;
	height: 100px;
	border: 1px solid rgba(127,255,255,0.25);
}
.ziCard:hover {
	box-shadow: 0px 0px 12px rgba(0,255,255,0.75);
	border: 1px solid rgba(127,255,255,0.75);
}
.itemCard {
	width: 100px;
	height: 120px;
	box-shadow: 0px 0px 12px rgba(0,255,255,0.5);
	border: 1px solid rgba(127,255,255,0.25);
	background-color:rgba(0,127,127,0.25);
	cursor: pointer;
}
.itemCard:hover {
	box-shadow: 0px 0px 12px rgba(0,255,255,0.75);
	border: 1px solid rgba(127,255,255,0.75);
}
.itemName {
	position: absolute;
	top:0px;
	left:0px;
	width: 100px;
	height: 100px;
	text-align: center;
	line-height: 50px;
	font-size: 40px;
	color: rgba(127,255,255,0.75);
	text-shadow: 0 0 2px rgba(0,255,255,0.95);
	pointer-events:none;
}
.itemIcon {
	position: absolute;
	top:100px;
	left:0px;
	width: 100px;
	height: 20px;
	text-align: center;
	line-height: 20px;
	font-size: 17px;
	color: rgba(127,255,255,0.75);
	pointer-events:none;
}

.translate {
	position: absolute;
	top:3px;
	left:3px;
	width: 96px;
	height: 96px;
	line-height: 15px;
	font-size: 12px;
	color: rgba(255,216,0,0.75);
	text-shadow: 0 0 2px rgba(0,255,255,0.95);
	pointer-events:none;
	display:none;
}
.diao {
	position: absolute;
	top:0px;
	left:0px;
	width: 100px;
	height: 20px;
	text-align: center;
	font-size: 20px;
	color: rgba(255,255,255,0.75);
	pointer-events:none;
}
.zi {
	position: absolute;
	top:0px;
	left:0px;
	width: 100px;
	height: 100px;
	font-family: kaiti, sans-serif;
	text-align: center;
	line-height: 100px;
	font-size: 85px;
	color: rgba(255,255,255,0.75);
	pointer-events:none;
	background-color:black;
	text-shadow: 0 0 10px rgba(0,255,255,0.95);
}
.lesson{
	width: 250px;
	height: 460px;
	box-shadow: 0px 0px 12px rgba(0,255,255,0.5);
	border: 1px solid rgba(127,255,255,0.25);
	background-color:rgba(0,127,127,0.1);
}
.result{
	position: absolute;
	top: 218px;
	left: 10px;
	width: 231px;
	height: 210px;
  border: 1px solid rgba(0,255,255,0.25);
  border-collapse: collapse;
}
.result td{
  border: 1px solid rgba(0,255,255,0.25);
	width: 77px;
	height: 30px;
	text-align: center;
	line-height: 30px;
	font-size: 18px;	
}
.progressBar{
	position: absolute;
	height: 3px;
	bottom:0px;
	left:0px;
}
.cursor{
	width: 10px;
	height: 10px;
	text-align: center;
	line-height: 10px;
	font-size: 8px;	
	color: red ;	
	text-shadow: 0 0 2px rgba(0,255,255,0.95);
}
.recwave{
	position: absolute;
	top: 130px;
	left: 10px;
	width: 170px;
	height: 75px;
  border: 1px solid rgba(0,255,255,0.25);
  border-collapse: collapse;
}
.microphone{
	position: absolute;
	top:130px;
	left:190px;
	width: 50px
	height: 50px;
	text-align: center;
	line-height: 50px;
	font-size: 40px;	
	cursor: pointer;
}
.replayButton{
	position: absolute;
	width: 50px;
	height: 20px;
	top:185px;
	left:190px;
	text-align: center;
	line-height: 20px;
	font-size: 18px;	
  border: 1px solid rgba(0,255,255,0.25);
  border-collapse: collapse;
	cursor: pointer;
}
.learnButton{
	position: absolute;
	width: 30px;
	height: 30px;
	text-align: center;
	line-height: 30px;
	font-size: 22px;	
  border: 1px solid rgba(0,255,255,0.25);
  border-collapse: collapse;
	cursor: pointer;
}
.learnScore{
	position: absolute;
	width: 250px;
	height: 30px;
	left:0px;
	top:5px;
	text-align: center;
	line-height: 30px;
	font-size: 22px;	
}

.building {
	width: 200px;
	height: 240px;
	box-shadow: 0px 0px 12px rgba(0,255,255,0.5);
	border: 1px solid rgba(127,255,255,0.25);
	font-family: Helvetica, sans-serif;
	text-align: center;
	line-height: normal;
	cursor: pointer;
}
.building:hover {
	box-shadow: 0px 0px 12px rgba(0,255,255,0.75);
	border: 1px solid rgba(127,255,255,0.75);
}

.building .price {
	position: absolute;
	bottom: 10px;
	right: 10px;
	font-size: 18px;
	color: rgba(127,255,255,0.75);
	text-shadow: 0 0 3px rgba(0,255,255,0.95);
}

.building .image {
	position: absolute;
	top: 0px;
	left: 0px;
	width:200px;
	height:200px;
}

.building .name {
	position: absolute;
	bottom: 10px;
	left: 10px;
	font-size: 18px;
	font-weight: bold;
	color: rgba(255,255,255,0.75);
	text-shadow: 0 0 3px rgba(0,255,255,0.95);
}
.half{
	position: absolute;
	top: 0px;
	width:50%;
	height:100%;
}
button {
	color: rgba(127,255,255,0.75);
	background: transparent;
	outline: 1px solid rgba(127,255,255,0.75);
	border: 0px;
	padding: 5px 10px;
	cursor: pointer;
}

button:hover {
	background-color: rgba(0,255,255,0.5);
}

button:active {
	color: #000000;
	background-color: rgba(0,255,255,0.75);
}			
